home *** CD-ROM | disk | FTP | other *** search
- -- background: 9861 from stack: in
- -- bmap block id: 2639
- -- flags: 4000
- -- background id: 0
- -- name: Labels
- ----- HyperTalk script -----
- on openBackground
- set the userLevel to 4
- end openBackground
-
- on newCard
- global TBatch, TDate, TLot
- choose line tool
- set lineSize to 1
- drag from 18,38 to 18,56
- drag from 18,38 to 36,38
- drag from 204,38 to 222,38
- drag from 222,38 to 222,56
- drag from 18,272 to 18,290
- drag from 18,290 to 36,290
- drag from 204,290 to 222,290
- drag from 222,272 to 222,290
-
- choose field tool
- drag from 18,100 to 222,118 with commandKey
- set name of card field 1 to "Varietal"
- put TBatch into card field Varietal
-
- drag from 18,150 to 148,168 with commandKey
- set name of card field 2 to "Vintage"
- put TDate into card field Vintage
-
- drag from 18,200 to 74,218 with commandKey
- set name of card field 3 to "LotControl"
- put TLot into card field LotControl
-
- choose browse tool
- end newCard
-
-
- on openCard
- global TBatch, TDate, TLot
-
- -- in HC 1.x the openCard will occur before a newCard (above) and
- -- will cause trouble. The following test prevents that
-
- if the number of card fields > 0
- then
- put TBatch into card field Varietal
- put TDate into card field Vintage
- put TLot into card field LotControl
- end if
- end openCard
-
-
-
-
- -- part 1 (button)
- -- low flags: 00
- -- high flags: 8000
- -- rect: left=462 top=215 right=260 bottom=504
- -- title width / last selected line: 0
- -- icon id / first selected line: 29114 / 29114
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Return
- ----- HyperTalk script -----
- on mouseUp
- pop card
- end mouseUp
-
-
-
- -- part 2 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=451 top=319 right=342 bottom=482
- -- title width / last selected line: 0
- -- icon id / first selected line: 15420 / 15420
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Prev/1st
- ----- HyperTalk script -----
- on mouseUp
- if the shiftKey is down
- then
- send "doMenu First" to background
- else
- send "doMenu Prev" to background
- end if
- end mouseUp
-
-
-
- -- part 3 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=481 top=319 right=342 bottom=512
- -- title width / last selected line: 0
- -- icon id / first selected line: 16560 / 16560
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Next/Last
- ----- HyperTalk script -----
- on mouseUp
- if the shiftKey is down
- then
- send "doMenu Last" to background
- else
- send "doMenu Next" to background
- end if
- end mouseUp
-
-
-
- -- part 5 (button)
- -- low flags: 00
- -- high flags: 0000
- -- rect: left=451 top=259 right=320 bottom=513
- -- title width / last selected line: 0
- -- icon id / first selected line: 0 / 0
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Coming Soon
- ----- HyperTalk script -----
- on mouseUp
- push card
- go to first card of bkgnd Calculator of stack Record Book
- end mouseUp
-
-
-
- -- part 6 (button)
- -- low flags: 00
- -- high flags: 8000
- -- rect: left=462 top=164 right=211 bottom=504
- -- title width / last selected line: 0
- -- icon id / first selected line: 32462 / 32462
- -- text alignment: 1
- -- font id: 0
- -- text size: 12
- -- style flags: 0
- -- line height: 16
- -- part name: Help
- ----- HyperTalk script -----
- on mouseUp
- push card
- go to card LabelHelp of bkgnd HelpSet of stack "Record Book"
- end mouseUp
-
-
-